package com.andaily.domain.user;

/**
 * Date: 13-9-22
 *
 * @author Shengzhao Li
 */
public class Developer extends User {

    private ScrumTerm scrumTerm;

    public Developer() {
        super();
    }

    public Developer(String email, String password, String city, ScrumTerm scrumTerm) {
        super(email, password, city);
        this.scrumTerm = scrumTerm;
    }

    public ScrumTerm scrumTerm() {
        return scrumTerm;
    }

    public boolean isDeveloper() {
        return true;
    }

    public Developer updateScrumTerm(ScrumTerm scrumTerm) {
        this.scrumTerm = scrumTerm;
        return this;
    }
}
